#计算文件的最大值和最小值的差
file = open(r"e:\file1.txt", "r")
list1 = []
while True:
    txt = file.readline()
    if txt == "":
        break
    list1.append(int(txt))

file.close()
print(max(list1)-min(list1))

